Tables [dbo].[RelationshipTypeCategory]
Properties
PropertyValue
Row Count12
Created10:31:36 AM Tuesday, March 02, 2010
Last Modified11:40:07 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_RelationshipTypeCategory: RelationshipTypeCategoryKeyRelationshipTypeCategoryKeyuniqueidentifier16
No
Foreign Keys FK_RelationshipTypeCategory_RelationshipTypeRef: [dbo].[RelationshipTypeRef].RelationshipTypeKeyIndexes AK_RelationshipTypeCategory: RelationshipTypeKey\RelationshipCategoryKeyRelationshipTypeKeyuniqueidentifier16
No
Foreign Keys FK_RelationshipTypeCategory_RelationshipCategoryRef: [dbo].[RelationshipCategoryRef].RelationshipCategoryKeyIndexes AK_RelationshipTypeCategory: RelationshipTypeKey\RelationshipCategoryKeyRelationshipCategoryKeyuniqueidentifier16
No
IsSystembit1
No
IsActivebit1
No
MarkedForDeleteOndatetime8
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_RelationshipTypeCategory: RelationshipTypeCategoryKeyPK_RelationshipTypeCategoryRelationshipTypeCategoryKey
Yes
AK_RelationshipTypeCategoryRelationshipTypeKey, RelationshipCategoryKey
Yes
Foreign Keys Foreign Keys
NameColumns
FK_RelationshipTypeCategory_RelationshipCategoryRefRelationshipCategoryKey->[dbo].[RelationshipCategoryRef].[RelationshipCategoryKey]
FK_RelationshipTypeCategory_RelationshipTypeRefRelationshipTypeKey->[dbo].[RelationshipTypeRef].[RelationshipTypeKey]
SQL Script
CREATE TABLE [dbo].[RelationshipTypeCategory]
(
[RelationshipTypeCategoryKey] [uniqueidentifier] NOT NULL,
[RelationshipTypeKey] [uniqueidentifier] NOT NULL,
[RelationshipCategoryKey] [uniqueidentifier] NOT NULL,
[IsSystem] [bit] NOT NULL,
[IsActive] [bit] NOT NULL,
[MarkedForDeleteOn] [datetime] NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[RelationshipTypeCategory] ADD CONSTRAINT [PK_RelationshipTypeCategory] PRIMARY KEY CLUSTERED ([RelationshipTypeCategoryKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RelationshipTypeCategory] ADD CONSTRAINT [AK_RelationshipTypeCategory] UNIQUE NONCLUSTERED ([RelationshipTypeKey], [RelationshipCategoryKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RelationshipTypeCategory] ADD CONSTRAINT [FK_RelationshipTypeCategory_RelationshipCategoryRef] FOREIGN KEY ([RelationshipCategoryKey]) REFERENCES [dbo].[RelationshipCategoryRef] ([RelationshipCategoryKey])
GO
ALTER TABLE [dbo].[RelationshipTypeCategory] ADD CONSTRAINT [FK_RelationshipTypeCategory_RelationshipTypeRef] FOREIGN KEY ([RelationshipTypeKey]) REFERENCES [dbo].[RelationshipTypeRef] ([RelationshipTypeKey])
GO
Uses